<div id="ad_header">


<?php
  if($adtype = 'ourdiary'){
?>
<script type="text/javascript">
		/* betalife | Leaderboard | betalife */
		var bamAdspace = '503d85fbbd85e';
		var bamWidth = 728;
		var bamHeight = 90;
</script>
<script type="text/javascript" src="http://www.bamifyads.com/ads.js"></script>	
<script type="text/javascript" >
dd_ad_output="textlink";
dd_ad_client="P-308505";
dd_ad_id=102;
dd_ad_format=30;
dd_open_target ="_blank";
</script>
<?php
  } elseif($adtype='default'){
?>
<script type="text/javascript" >
dd_ad_output="textlink";
dd_ad_client="P-308505";
dd_ad_id=102;
dd_ad_format=30;
dd_open_target ="_blank";
</script>
<script type="text/javascript" src="http://union.dangdang.com/union/script/dd_ads.js" ></script>
<?php

  }
?>


 <div class="clear"></div>
</div>